#ifndef OMMIT_UNIT_TEST

#include <UnitTest++/src/UnitTest++.h>

#include "GenNames.h"
#include <string>

TEST(FolderNameGenTest)
  {
  std::string folder_name;
  
  folder_name = GenFolderName(100, 10, 10);
  CHECK_EQUAL("100_10p_max10", folder_name);

  folder_name = GenFolderName(100, 0, 10);
  CHECK_EQUAL("100_max10", folder_name);

  folder_name = GenFolderName(100, 10, 0);
  CHECK_EQUAL("100_10p", folder_name);

  folder_name = GenFolderName(100, 0, 0);
  CHECK_EQUAL("100", folder_name);
  }

TEST(FileNameGenTest)
  {
  std::string file_name;

  file_name = GenFileName(100, "File");
  CHECK_EQUAL("File_100.dat", file_name);

  file_name = GenFileName(100);
  CHECK_EQUAL("Graph_100.dat", file_name);
  }

#endif